package com.guava;

import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;

import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * @author: sun.hongliang
 * @create: 2018/06/12 16:16
 */
public class OrderingTest {
    public static void main(String[] args) {
        List<Integer> lists = Lists.newArrayList();
        lists.add(5);
        lists.add(2);
        lists.add(11);
        lists.add(11);
        lists.add(33);
        System.out.println(lists);
        testNatural(lists);
        System.out.println(lists);
    }

    /**
     *  进行自然排序
     * @param list
     */
    public static void testNatural(List list) {
        Ordering ordering = Ordering.natural();
    }

}
